package com.ch.clinking.bean;

import java.io.Serializable;

public class SkuInfo implements Serializable {

    private String image;

    private String title;

    private Integer stock;

    private Integer operateNum = 0;

    private Integer finalNum = 0;

    private Integer operation = 1;

    private Integer changeOperateNum = 1;

    public Integer getOperation() {
        return operation;
    }

    public void setOperation(Integer operation) {
        this.operation = operation;
    }

    public SkuInfo() {
    }

    public SkuInfo(String title, Integer stock) {
        this.title = title;
        this.stock = stock;
        this.finalNum = stock;
    }

    public SkuInfo(String title, Integer stock, String image) {
        this.title = title;
        this.stock = stock;
        this.image = image;
        this.finalNum = stock;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    public Integer getOperateNum() {
        return operateNum;
    }

    public void setOperateNum(Integer operateNum) {
        this.operateNum = operateNum;
    }

    public Integer getFinalNum() {
        return finalNum;
    }

    public void setFinalNum(Integer finalNum) {
        this.finalNum = finalNum;
    }

    public Integer getChangeOperateNum() {
        return changeOperateNum;
    }

    public void setChangeOperateNum(Integer changeOperateNum) {
        this.changeOperateNum = changeOperateNum;
    }

    @Override
    public String toString() {
        return "SkuInfo{" +
                "image='" + image + '\'' +
                ", title='" + title + '\'' +
                ", stock=" + stock +
                ", operateNum=" + operateNum +
                ", finalNum=" + finalNum +
                ", operation=" + operation +
                ", changeOperateNum=" + changeOperateNum +
                '}';
    }
}
